<%@page import="org.blog.controller.UserController"%>
<%@page import="org.blog.beans.User"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1" %>
<%@ page errorPage="../jsp/exceptionHandler.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<jsp:include page="../jsp/cssChoose.jsp" />

<script type="text/javascript" src="js/validation.js"></script>

<title><%= request.getParameter("title") %></title>
</head>
<body>

 	<div id = "container"> 	
 	<jsp:include page="../jsp/header.jsp">
 		<jsp:param value="Blog!" name="title"/>
 	</jsp:include>
 	
	<div id="texts">
	<jsp:include page="../jsp/menu.jsp"/>			
		<div id = "content">
			<%
			ArrayList<User> users = (ArrayList<User>) request.getAttribute("users");
			for(User u : users) {
				if(!UserController.isAdmin(session, u)) {%>
				<%= u.getLogin() +"->"%><a href="AdminServlet?do=delete&id=<%=u.getId() %>">usun</a><br/>
			<%	} 
			} %>
		</div>
		
	</div>
		<jsp:include page="../html/footer.html"/>
						

	</div>
	
</body>
</html>

